package edu.gxnu.cetcdemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @TableName user
 */
@TableName(value = "user")
@Data
@ApiModel(description = "师生用户实体类")
public class User implements Serializable {
    @ApiModelProperty("用户编号")
    @TableId(type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("用户类型")
    private String userType;

    @ApiModelProperty("密码")
    private String userPassword;

    @ApiModelProperty("学号")
    private String studentId;

    @ApiModelProperty("手机号")
    private String userPhonenumber;

    @ApiModelProperty("头像")
    private String userAvatarUrl;

    private String userCollege;

    @Serial
    private static final long serialVersionUID = 1L;
}
